饼图

配置项


    zlevel: 0,
    z: 1,

    // 默认全局居中
    center: ["50%", "50%"], 
    // 半径
    radius: [10, 20],

    // 标题
    title : {
        // x, y,单位px
        offsetCenter: [0, 0],
        textStyle: {       // 其余属性默认使用全局文本样式,详见TEXTSTYLE
            color: "#333",
            fontStyle: "normal",
            fontFamily: "sans-serif",
            fontWeight: "normal",
            fontSize: 14
        }
    },

    circleStyle: {
        show: false,
        innerRadius: 55,
        outerRadius: 70,
        //  'line' or 'dotted' 两种
        innerType:'line', 
        outerType:'line', 
        dottedStyle: {
            // 是否和item计算出的弧度一致
            // 默认绘制整个圆
            angleWithItem: false,
            edgePadding: 1,
            // 小圆点半径
            radius: 3,
            stroke: '#000',
            fill: '#000'
        },
        innerStrokeColor: "#333",
        innerFillColor: "#F04927",
        outerFillColor: "#F04927",
        outerStrokeColor: "#F04927"
    },
    animation: true,
    itemStyle: {
        normal: {
            stroke: "#333",
            fill: "#333",
            cornerRadius: 0
        },
        formatter: function (originD, d) {
            return d;
        },

        textStyle: {
            position: "center",
            color: "#333",
            fontFamily: "sans-serif",
            fontWeight: "normal",
            fontSize: 12
        }
    }